package com.gzgs.service;

import com.gzgs.domain.Permission;
import com.gzgs.domain.Role;

import java.util.List;

public interface RoleService {
    public List<Role> findAll() throws Exception;

    void saveRole(Role role) throws Exception;

    Role findById(String id) throws Exception;

    void deleteRole(String id)throws Exception;

    List<Permission> findOtherPermissions(String roleId)throws Exception;

    void addPermissionToRole(String roleId, String[] permissionIds)throws Exception;
}
